/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.comut.crud.pojo.fleet;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author asantos
 */
@XmlRootElement( )
@XmlAccessorType(XmlAccessType.FIELD)
public class Fleet implements Serializable{
    
    private static final long serialVersionUID = 123534;
    private int id = -1;
                
    private String alias = null;
    private String id_channel = null;

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getId_channel() {
        return id_channel;
    }

    public void setId_channel(String id_channel) {
        this.id_channel = id_channel;
    }
    
    
    
    public boolean isValid() {
        if(alias==null || alias.equals("")|| id_channel==null || id_channel.equals(""))
            return false;
        
        return true;
    }

    @Override
    public String toString() {
        return "Fleet{" + "id=" + id + ", alias=" + alias + ", id_channel=" + id_channel + '}';
    }
    
    
    
}
